<template>
  <div class="Cart">
    <van-nav-bar placeholder fixed title="购物车" left-text="" left-arrow @click-left="onClickLeft" />
    <stay></stay>
  </div>
</template>

<script>
  import stay from './base/section.vue'
  import router from '@/router'
  export default {
    name: 'cateGory',
    components: {
      stay
    },
    data() {
      return {
        checked: 0,
        userNick: localStorage.getItem('userToken') || ''
      }
    },
    methods: {
      onClickLeft() {
        router.go(-1)
      }
    },
    created() {
      if (this.userNick === '') {
        router.push('/Login')
        this.$toast('这就为您跳转登录哦')
      }
    }
  }
</script>

<style>
</style>
